package gameAppLayer;

import com.jme3.input.InputManager;
import com.jme3.renderer.Camera;
import com.jme3.renderer.RenderManager;
import com.jme3.renderer.ViewPort;
import com.jme3.scene.Spatial;
import com.jme3.scene.control.Control;

public class StaticCamera extends AbstractRealCamera {

	protected InputManager inputManager;
	
	public StaticCamera(Camera cam) {
		this.setCamera(cam);
	}
	
	@Override
	public Control cloneForSpatial(Spatial spatial) {
		StaticCamera other = new StaticCamera(cam);
		other.registerInputs(inputManager);
		other.setSpatial(spatial);
		return other;
	}

	@Override
	public void registerInputs(InputManager inputManager) {
		this.inputManager = inputManager;		
	}

	@Override
	protected void zoomCamera(float value) {
			
	}

	@Override
	protected void moveCamera(float value, boolean sideways) {
				
	}

	@Override
	protected void controlUpdate(float tpf) {
		// TODO Auto-generated method stub
		
	}

	@Override
	protected void controlRender(RenderManager rm, ViewPort vp) {
		if (this.spatial!=null)
			updateSpatialLocation();		
	}

}
